<!DOCTYPE html><html><head>
  <title>NEGATED ID selector</title>
  <style type="text/css">div.stub > * { color : red }
div.stub *:not(#foo) { color : lime }
</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <link rel="match" href="reference/three-paragraph-lime-characters.xht">
  <meta name="flags" content="">
 </head>
 <body>
<div class="stub">
<p><!--Replaced (div.stub > *) --></p>
<p id="foo2"><!--Replaced (div.stub > *) --></p>
<p id="foo"><!--Replaced (div.stub > *) --></p>
</div>

</body></html>